﻿using System;
using StructureMap;
using TimeTracker.Core.Services;

namespace TimeTracker.Web
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var korisnikSession = ObjectFactory.GetInstance<IKorisnikSession>();
            var redirect = ObjectFactory.GetInstance<IRedirectorService>();
            
            redirect.IdiNaAdminStranu();
            //if(korisnikSession.Prijavljen)
            //    redirect.IdiNaAdminStranu();
            //else
            //    redirect.IdiNaStranuPrijave();

        }
    }
}
